import React from 'react';
import {API} from '../config/api';

const Auth = (props) => {
  const returnUrl = props.location.pathname;
  const interceptUrl = `/login?returnUrl=${returnUrl}`;
  props.history.replace(interceptUrl);

  return <></>;
};

export {
  Auth,
}
